package org.huntaway.kindergarten.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the funds_day table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="funds_day"
 */

public abstract class BaseFundsDay  implements Serializable {

	public static String REF = "FundsDay";
	public static String PROP_OUTAMOUNT = "Outamount";
	public static String PROP_INTRODUCTION = "Introduction";
	public static String PROP_INAMOUNT = "Inamount";
	public static String PROP_T_DATE = "TDate";
	public static String PROP_ID = "Id";
	public static String PROP_REMARK = "Remark";
	public static String PROP_BALANCEAMOUNT = "Balanceamount";


	// constructors
	public BaseFundsDay () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseFundsDay (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.util.Date tDate;
	private java.math.BigDecimal inamount;
	private java.math.BigDecimal outamount;
	private java.math.BigDecimal balanceamount;
	private java.lang.String remark;
	private java.lang.String introduction;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="fd_id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: t_date
	 */
	public java.util.Date getTDate () {
		return tDate;
	}

	/**
	 * Set the value related to the column: t_date
	 * @param tDate the t_date value
	 */
	public void setTDate (java.util.Date tDate) {
		this.tDate = tDate;
	}



	/**
	 * Return the value associated with the column: inamount
	 */
	public java.math.BigDecimal getInamount () {
		return inamount;
	}

	/**
	 * Set the value related to the column: inamount
	 * @param inamount the inamount value
	 */
	public void setInamount (java.math.BigDecimal inamount) {
		this.inamount = inamount;
	}



	/**
	 * Return the value associated with the column: outamount
	 */
	public java.math.BigDecimal getOutamount () {
		return outamount;
	}

	/**
	 * Set the value related to the column: outamount
	 * @param outamount the outamount value
	 */
	public void setOutamount (java.math.BigDecimal outamount) {
		this.outamount = outamount;
	}



	/**
	 * Return the value associated with the column: balanceamount
	 */
	public java.math.BigDecimal getBalanceamount () {
		return balanceamount;
	}

	/**
	 * Set the value related to the column: balanceamount
	 * @param balanceamount the balanceamount value
	 */
	public void setBalanceamount (java.math.BigDecimal balanceamount) {
		this.balanceamount = balanceamount;
	}



	/**
	 * Return the value associated with the column: remark
	 */
	public java.lang.String getRemark () {
		return remark;
	}

	/**
	 * Set the value related to the column: remark
	 * @param remark the remark value
	 */
	public void setRemark (java.lang.String remark) {
		this.remark = remark;
	}



	/**
	 * Return the value associated with the column: introduction
	 */
	public java.lang.String getIntroduction () {
		return introduction;
	}

	/**
	 * Set the value related to the column: introduction
	 * @param introduction the introduction value
	 */
	public void setIntroduction (java.lang.String introduction) {
		this.introduction = introduction;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof org.huntaway.kindergarten.po.FundsDay)) return false;
		else {
			org.huntaway.kindergarten.po.FundsDay fundsDay = (org.huntaway.kindergarten.po.FundsDay) obj;
			if (null == this.getId() || null == fundsDay.getId()) return false;
			else return (this.getId().equals(fundsDay.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}